Replication File Index for Partisan Selective Exposure in Online News Consumption: Evidence from the 2016 Presidential Campaign

##
#Analysis in the main text
##

"isolationindexmeasures-psrm.R" isolation index overall and for different types of news content
This reproduces Table 2, Figure 2, Figure 3, Table A2, Table D1, Table D2, Table D3 and other in-text of the isolation index
#NOTE: As cluster bootstrapping procedure for assessing uncertainty with this measure is time consuming to run, we also provide the standard errors that result from this procedure in the replication materials

"segregation.channel-psrm.R" web traffic summaries, audience segregation measure and channel analysis
This reproduces Table 1, Figure 1, Table 3 and in-text mentions of the audience segregation measures

"survey.outcomes-psrm.R" relates summary measures of an individual's media diet to their candidate assessments.
This reproduces Figure 4 in the main text and appendix figure E1

"mturk.full.analysis-psrm.R" reproduces in-text mentions of the distribution of different types of election news topics and slant
This reproduces appendix Figure B1

##
#Supplementary Analysis
##
    
"uptake.compliance-psrm.R" reproduces Figure A1, Figure A2, Figure A3 and Table F1

"survey.benchmark-psrm.R" reproduces Figure A4, Figure A5 and Figure A6

"mturk.pilot.analysis-psrm.R" reproduces pilot label analysis in Appendix B

"traffic-ratings.comparison-psrm.R" reproduces Table A1 and Table C1

RAM: 16 GB
Software Version: R 3.6.0
Packages Used:
plyr - Version 1.8.4
SDMTools - Version 1.1-221.1
xtable - Version 1.8-4
irr - Version 0.84.1
zoo - Version 1.8-6
apsrtable - Version 0.8-8
tidyr - Version 0.3.3

